Optimal. Leaf size=45 \[ \frac {4 \cos (c+d x)}{a^3 d (\sin (c+d x)+1)}-\frac {\tanh ^{-1}(\cos (c+d x))}{a^3 d}+\frac {x}{a^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.148, Rules used = {2875, 2872, 3770, 2648} \[ \frac {4 \cos (c+d x)}{a^3 d (\sin (c+d x)+1)}-\frac {\tanh ^{-1}(\cos (c+d x))}{a^3 d}+\frac {x}{a^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2648
Rule 2872
Rule 2875
Rule 3770
Rubi steps
\begin {align*} \int \frac {\cos ^3(c+d x) \cot (c+d x)}{(a+a \sin (c+d x))^3} \, dx &=\frac {\int \csc (c+d x) \sec ^2(c+d x) (a-a \sin (c+d x))^3 \, dx}{a^6}\\ &=\frac {\int \left (a+a \csc (c+d x)-\frac {4 a}{1+\sin (c+d x)}\right ) \, dx}{a^4}\\ &=\frac {x}{a^3}+\frac {\int \csc (c+d x) \, dx}{a^3}-\frac {4 \int \frac {1}{1+\sin (c+d x)} \, dx}{a^3}\\ &=\frac {x}{a^3}-\frac {\tanh ^{-1}(\cos (c+d x))}{a^3 d}+\frac {4 \cos (c+d x)}{a^3 d (1+\sin (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.28, size = 122, normalized size = 2.71 \[ \frac {\left (\sin \left (\frac {1}{2} (c+d x)\right )+\cos \left (\frac {1}{2} (c+d x)\right )\right )^5 \left (\cos \left (\frac {1}{2} (c+d x)\right ) \left (\log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )+c+d x\right )+\sin \left (\frac {1}{2} (c+d x)\right ) \left (\log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )+c+d x-8\right )\right )}{a^3 d (\sin (c+d x)+1)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.46, size = 117, normalized size = 2.60 \[ \frac {2 \, d x + 2 \, {\left (d x + 4\right )} \cos \left (d x + c\right ) - {\left (\cos \left (d x + c\right ) + \sin \left (d x + c\right ) + 1\right )} \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) + {\left (\cos \left (d x + c\right ) + \sin \left (d x + c\right ) + 1\right )} \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) + 2 \, {\left (d x - 4\right )} \sin \left (d x + c\right ) + 8}{2 \, {\left (a^{3} d \cos \left (d x + c\right ) + a^{3} d \sin \left (d x + c\right ) + a^{3} d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 47, normalized size = 1.04 \[ \frac {\frac {d x + c}{a^{3}} + \frac {\log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right )}{a^{3}} + \frac {8}{a^{3} {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.58, size = 58, normalized size = 1.29 \[ \frac {2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d \,a^{3}}+\frac {\ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d \,a^{3}}+\frac {8}{d \,a^{3} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 78, normalized size = 1.73 \[ \frac {\frac {8}{a^{3} + \frac {a^{3} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}} + \frac {2 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{3}} + \frac {\log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{3}}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 8.73, size = 115, normalized size = 2.56 \[ \frac {8}{d\,\left (a^3+a^3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}+\frac {\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{a^3\,d}+\frac {2\,\mathrm {atan}\left (\frac {4\,a^3}{4\,a^3-4\,a^3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}+\frac {4\,a^3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{4\,a^3-4\,a^3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )}{a^3\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {\cos ^{4}{\left (c + d x \right )} \csc {\left (c + d x \right )}}{\sin ^{3}{\left (c + d x \right )} + 3 \sin ^{2}{\left (c + d x \right )} + 3 \sin {\left (c + d x \right )} + 1}\, dx}{a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________